import { _decorator, Component, Node } from 'cc';
import { CONTROLLER_ENUM, EVENT_ENUM } from '../Enums';
import EventManager from '../Runtime/EventManager';
const { ccclass, property } = _decorator;

@ccclass('ControllerManger')
export class ControllerManger extends Component {

   handleCtrl(evt:Event,type:string){

    EventManager.Instance.emit(EVENT_ENUM.PLAYER_CTRL,type as CONTROLLER_ENUM)
    //切换地图
    //EventManager.Instance.emit(EVENT_ENUM.NEXT_LEVEL)
   }

}

